import request from '@/utils/request'

// 员工评价统计
export function fetchAppraiseStatistics(data) {
	return request({
		url: '/user/appraiseStatistics',
		method: 'POST',
		data: data
	})
}

// 用户拥有的商圈列表
export function fetchUserAreaList(data) {
	return request({
		url: '/manageUser/userAreaList',
		method: 'POST',
		data: data
	})
}

// 获取人才列表
export function fetchUsers(data) {
	return request({
		url: '/user/getUserList',
		method: 'POST',
		data: data
	})
}

// 获取人才列表
export function toFetchUsers(data) {
	return request({
		url: '/user/getListForSearch',
		method: 'POST',
		data: data
	})
}

// 获取人才详情
export function fetchUsersInfo(data) {
	return request({
		url: '/user/getUserInfo',
		method: 'POST',
		data: data
	})
}

// 审核人才健康证
export function healthAudit(data) {
	return request({
		url: '/user/auditHealthCard',
		method: 'POST',
		data: data
	})
}

// 查看C公众号二维码
export function fetchManagerQRCode(data) {
	return request({
		url: '/manageUser/getQrCode',
		method: 'POST',
		data: data
	})
}

// 查看B公众号二维码
export function fetchManagerQRCodeB(data) {
	return request({
		url: '/manageUser/getQrCodeB',
		method: 'POST',
		data: data
	})
}
// 获取角色列表
export function fetchRoleList(data) {
	return request({
		url: '/role/listRole',
		method: 'POST',
		data: data
	})
}

// 获取管理员列表
export function fetchListUser(data) {
	return request({
		url: '/manageUser/listUser',
		method: 'POST',
		data: data
	})
}

// 修改人员日程信息
export function saveUserSchedule(data) {
	return request({
		url: '/schedule/saveUserSchedule',
		method: 'POST',
		data: data
	})
}

// 人员日程信息
export function getUserInfo(data) {
	return request({
		url: '/schedule/userInfo',
		method: 'POST',
		data: data
	})
}

// 添加管理员
export function addManageUser(data) {
	return request({
		url: '/manageUser/addUser',
		method: 'POST',
		data: data
	})
}
// 添加管理员
export function editManageUser(data) {
	return request({
		url: '/manageUser/editUser',
		method: 'POST',
		data: data
	})
}
//人才拉黑
export function createBack(data) {
	return request({
		url: '/blackList/create',
		method: 'POST',
		data: data
	})
}

//查询人才接口
export function userList(data) {
	return request({
		url: '/user/list',
		method: 'POST',
		data: data
	})
}

//签约审核接口
export function auditSignSolo(data) {
	return request({
		url: '/user/auditSignSolo',
		method: 'POST',
		data: data
	})
}

//灵活审核接口
export function auditFreelanceSolo(data) {
	return request({
		url: '/user/auditFreelanceSolo',
		method: 'POST',
		data: data
	})
}

//查询在职店铺人员
export function fetchWorkShopList(data) {
	return request({
		url: '/user/workShopList',
		method: 'POST',
		data: data
	})
}

//操作离职
export function userDepart(data) {
	return request({
		url: '/user/depart',
		method: 'POST',
		data: data
	})
}

//人才详情编辑
export function editUser(data) {
	return request({
		url: '/user/editUser',
		method: 'POST',
		data: data
	})
}

//获取当前登录人是否有编辑权限
export function checkUserAuthList(data) {
	return request({
		url: '/common/checkUserAuthList',
		method: 'POST',
		data: data
	})
}


// WEBPACK FOOTER //
// ./src/api/user.js